package com.lin.missyou.service;

import com.lin.missyou.model.Sku;
import com.lin.missyou.repository.SkuRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author gcq
 * @Create 2021-11-08
 */
@Service
public class SkuService {

    @Autowired
    SkuRepository skuRepository;

    public List<Sku> getSkuListByIds(List<Long> ids)
    {
        return this.skuRepository.findAllByIdIn(ids);
    }
}